home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
- <!-- ***** BEGIN LICENSE BLOCK *****
- - Version: MPL 1.1
- -
- - The contents of this file are subject to the Mozilla Public License Version
- - 1.1 (the "License"); you may not use this file except in compliance with
- - the License. You may obtain a copy of the License at
- - http://www.mozilla.org/MPL/
- -
- - Software distributed under the License is distributed on an "AS IS" basis,
- - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- - for the specific language governing rights and limitations under the License.
- -
- - The Original Code is the Autocomplete Manager extension.
- -
- - The Initial Developer of the Original Code is
- - Nikitas Liogkas <nikitas@acm.org>.
- - Portions created by the Initial Developer are Copyright (C) 2005-2008
- - the Initial Developer. All Rights Reserved.
- -
- - Contributor(s):
- - Version 2.3
- -
- - ***** END LICENSE BLOCK ***** -->
-
- <!-- stylesheets have to be outside the overlay -->
- <?xml-stylesheet href="chrome://acmanager/skin/acmanager.css" type="text/css"?>
-
- <!DOCTYPE overlay SYSTEM "chrome://browser/locale/openLocation.dtd">
-
- <overlay id="openlocation-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
- <script type="application/javascript; version=1.7" src="chrome://acmanager/content/rdfUtils.js"/>
- <script type="application/javascript" src="chrome://acmanager/content/acpopup.js"/>
- <script type="application/javascript" src="chrome://acmanager/content/aggregator.js"/>
- <script type="application/javascript" src="chrome://acmanager/content/filterer.js"/>
- <script type="application/javascript" src="chrome://acmanager/content/options.js"/>
-
- <!-- custom location bar; we hide the default one, and use this instead -->
- <dialog id="openLocation"
- onload="if (acm_getPreference(ACM_ACTIVE_COMPONENT) !== 'default') {
- /* code taken from chrome://content/browser/openLocation.js::onLoad() */
- document.getElementById('openWhereList').selectedItem = document.getElementById('currentWindow');
- var value = acm_prefs.getIntPref('general.open_location.last_window_choice');
- var element = document.getElementById('openWhereList').getElementsByAttribute('value', value)[0];
- if (element)
- document.getElementById('openWhereList').selectedItem = element;
-
- document.getElementById('urlbar').value = acm_prefs.getComplexValue(
- 'general.open_location.last_url', Components.interfaces.nsISupportsString).data;
- if (document.getElementById('urlbar').value)
- document.getElementById('urlbar').select();
- }
- else
- onLoad();"
-
- ondialogaccept="if (acm_getPreference(ACM_ACTIVE_COMPONENT) !== 'default')
- acm_loadURL();
- else
- open();">
-
- <!-- will be moved to its proper place in acm_activateEnhancedOpenWebLocationSubUrlbar() -->
- <hbox id="urlbar-hbox" align="center" position="5">
- <textbox id="urlbar"
- flex="1"
- type="autocomplete"
- enablehistory="true"/>
- <button label="&chooseFile.label;" oncommand="acm_onChooseFile();"/>
- </hbox>
-
- <popup
- style="-moz-binding: url('chrome://acmanager/content/acpopup.xml#acm_popup')"
- id="ACM_Popup"
- ignorekeys="true"
- onclick="acm_popupMouseClick(event, this);"
- onmousemove="acm_popupMouseMove(event);"
- onpopuphidden="acm_preventPopup = false;
- if (acm_getPreference(ACM_INLINE)) {
- const urlbar = document.getElementById('urlbar');
- urlbar.setSelectionRange(urlbar.textLength, urlbar.textLength);
- }
- acm_maxrows = acm_getPreference(ACM_MAXROWS);"/>
- </dialog>
-
- <commandset>
- <!-- command to temporarily disable the popup -->
- <command id="cmd_focusURLBar"
- oncommand="document.getElementById('urlbar').select(); acm_disablePopup = true;"/>
- </commandset>
-
- <keyset>
- <!-- keyboard shortcut to temporarily disable the popup -->
- <key modifiers="alt" key="L" command="cmd_focusURLBar"/>
- </keyset>
-
- </overlay>
-